package com.youku.plugins.commonui.view
{
   import flash.display.Sprite;
   import com.youku.utils.DrawUtil;
   
   public class Background extends Sprite
   {
      
      public function Background() {
         super();
         var _loc1_:Array = [3390445,3390445];
         var _loc2_:* = "linear";
         var _loc3_:Array = [0.15,1];
         var _loc4_:Array = [0,255];
         var _loc5_:Object = 
            {
               "gradientType":_loc2_,
               "colors":_loc1_,
               "alphas":_loc3_,
               "ratios":_loc4_,
               "angle":90
            };
         var _loc6_:Sprite = DrawUtil.RectangleSprite(0,0,100,100,0,1,_loc5_,0);
         this._background = _loc6_;
         this._background.alpha = 0.4;
         addChild(this._background);
      }
      
      private var _background:Sprite;
      
      private var _width:Number;
      
      private var _height:Number;
      
      public function setSize(param1:Number, param2:Number) : void {
         this._width = param1;
         this._height = param2;
         this._background.width = this._width;
         this._background.height = this._height;
      }
   }
}
